/**
 *
 */
package sun.scheduler.core.job;

import sun.scheduler.core.job.Job;
import sun.scheduler.core.resource.Resource;

/**
 * 
 * @author Jonathan
 */
public class DummyJob extends Job
{
    // earliest start and latest endtime of this dummyjob
    private long earliestStartTime, latestEndTime;
    
    public DummyJob(int jobId)
    {
        super(jobId, -1, "DummyJob" + jobId, "DummyGroup", 0, 0, 0, 0, Resource.DUMMY_RESOURCE);
    }


    @Override
    public double getAmountOfResources(CurveState cState)
    {
        return 0;
    }

    @Override
    public long getDuration(CurveState cState)
    {
        return 0;
    }

    @Override
    public long getEarliestStartTime(CurveState cState)
    {
        return earliestStartTime;
    }

    @Override
    public long getLatestEndTime(CurveState cState)
    {
        return latestEndTime;
    }

    @Override
    public void setEarliestStartTime(CurveState cState, long est)
    {
        this.earliestStartTime = est;
    }

    @Override
    public void setLatestEndTime(CurveState cState, long let)
    {
        this.latestEndTime = let;
    }

    @Override
    public double getCost(CurveState cState)
    {
        return 0;
    }
    
    @Override
    public String toString()
    {
        return super.toString() + " <dummy>";
    }
}
